package cts.db;

import java.sql.Timestamp;

/**
 * Announcement entity. @author MyEclipse Persistence Tools
 */

public class Announcement implements java.io.Serializable {

	// Fields

	private Integer anId;
	private Exam exam;
	private String anContent;
	private Timestamp editTime;

	// Constructors

	/** default constructor */
	public Announcement() {
	}

	/** minimal constructor */
	public Announcement(Exam exam, Timestamp editTime) {
		this.exam = exam;
		this.editTime = editTime;
	}

	/** full constructor */
	public Announcement(Exam exam, String anContent, Timestamp editTime) {
		this.exam = exam;
		this.anContent = anContent;
		this.editTime = editTime;
	}

	// Property accessors

	public Integer getAnId() {
		return this.anId;
	}

	public void setAnId(Integer anId) {
		this.anId = anId;
	}

	public Exam getExam() {
		return this.exam;
	}

	public void setExam(Exam exam) {
		this.exam = exam;
	}

	public String getAnContent() {
		return this.anContent;
	}

	public void setAnContent(String anContent) {
		this.anContent = anContent;
	}

	public Timestamp getEditTime() {
		return this.editTime;
	}

	public void setEditTime(Timestamp editTime) {
		this.editTime = editTime;
	}

}